

//统一管理API接口地址
import request  from '@/request/request.js';

import qs from 'qs';



//封装成函数,导入的时候只执行这个方法API,否则每次导入js文件都会执行整个js的方法,
 export const JinPingAPI =()=>request.get("/products/recommend");

//发送短信验证码请求
 export const SendSMSAPI =(params)=>request.post("/sendSMS",qs.stringify(params));


 //发送登陆请求
 export const PhoneLoginAPI =(params)=>request.post("/phoneRegin",qs.stringify(params));

//微信登陆Login请求
 export const WeixinLoginApi = (params) => request.post(`/wechatUsers/PCLogin`,qs.stringify(params));


//手机绑定微信请求
export const WeixinBindingApi = (params) => request.post(`/wechatUsers/binding`,qs.stringify(params));


//获取用户的请求信息
export const getUserInfoApi = (params) => request.get(`/shop/userProfiles`);




